const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
  // transpileDependencies: true,
  publicPath: './',
  lintOnSave: false,
  devServer: {
    host: '0.0.0.0',
    open: true,
    proxy: {
      '/webapi/8080': {
        target: 'http://122.226.166.67:8088',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/webapi/8080': '/',
        },
      },
      '/webapi/18080': {
        target: 'http://122.226.166.67:18080',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/webapi/18080': '/',
        },
      },
      '/webapi/28080': {
        target: 'http://122.226.166.67:28080',
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/webapi/28080': '/',
        },
      },
    },
  },
});
